package com.zbs.framework.dao.function.entity;

import com.zbs.framework.dao.base.BaseEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 功能权限关联关系
 */

@Entity
@Table(name = "mnt_function_permission")
@Getter
@Setter
@NoArgsConstructor
public class FunctionPermission extends BaseEntity {

    /**
     * 功能点Id
     */
    private Long functionId;

    /**
     * 权限Id
     */
    private Long permissionId;

    public FunctionPermission(Long functionId, Long permissionId) {
        this.functionId = functionId;
        this.permissionId = permissionId;
    }
}
